package com.ruoyi.huoyun.message.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留言对象 leave_message
 *
 * @author mj
 * @date 2021-11-29
 */
public class LeaveMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 留言id */
    private String leaveMessageId;

    /** 留言人姓名 */
    @Excel(name = "留言人姓名")
    private String name;

    /** 留言人电话号码 */
    @Excel(name = "留言人电话号码")
    private String telephone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 类型（0建议 1投诉） */
    @Excel(name = "类型", readConverterExp = "0=建议,1=投诉")
    private String type;

    /** 状态（0未处理 1已处理） */
    @Excel(name = "状态", readConverterExp = "0=未处理,1=已处理")
    private String status;

    /** 提交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitDate;

    /** 处理日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dealedDate;

    /** 来源（0App 1网页） */
    @Excel(name = "来源", readConverterExp = "0=App,1=网页")
    private String sourceOfMessage;

    /** 对象（0平台 1货主 2司机 3其他） */
    @Excel(name = "对象", readConverterExp = "0=平台,1=货主,2=司机,3=其他")
    private String leaveOfObject;

    /** 处理人的账号 */
    @Excel(name = "处理人的账号")
    private String dealPersonAccount;

    /** 满意度（1~5） */
    @Excel(name = "满意度", readConverterExp = "1=~5")
    private Integer satisfactionOfPerson;

    /** 被建议人姓名 */
    @Excel(name = "被建议人姓名")
    private String suggestObjectName;

    /** 被建议人电话 */
    @Excel(name = "被建议人电话")
    private String suggestObjectTelephone;

    /** 留言内容 */
    @Excel(name = "留言内容")
    private String text;

    public void setLeaveMessageId(String leaveMessageId)
    {
        this.leaveMessageId = leaveMessageId;
    }

    public String getLeaveMessageId()
    {
        return leaveMessageId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setTelephone(String telephone)
    {
        this.telephone = telephone;
    }

    public String getTelephone()
    {
        return telephone;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setSubmitDate(Date submitDate)
    {
        this.submitDate = submitDate;
    }

    public Date getSubmitDate()
    {
        return submitDate;
    }
    public void setDealedDate(Date dealedDate)
    {
        this.dealedDate = dealedDate;
    }

    public Date getDealedDate()
    {
        return dealedDate;
    }
    public void setSourceOfMessage(String sourceOfMessage)
    {
        this.sourceOfMessage = sourceOfMessage;
    }

    public String getSourceOfMessage()
    {
        return sourceOfMessage;
    }
    public void setLeaveOfObject(String leaveOfObject)
    {
        this.leaveOfObject = leaveOfObject;
    }

    public String getLeaveOfObject()
    {
        return leaveOfObject;
    }
    public void setDealPersonAccount(String dealPersonAccount)
    {
        this.dealPersonAccount = dealPersonAccount;
    }

    public String getDealPersonAccount()
    {
        return dealPersonAccount;
    }
    public void setSatisfactionOfPerson(Integer satisfactionOfPerson)
    {
        this.satisfactionOfPerson = satisfactionOfPerson;
    }

    public Integer getSatisfactionOfPerson()
    {
        return satisfactionOfPerson;
    }
    public void setSuggestObjectName(String suggestObjectName)
    {
        this.suggestObjectName = suggestObjectName;
    }

    public String getSuggestObjectName()
    {
        return suggestObjectName;
    }
    public void setSuggestObjectTelephone(String suggestObjectTelephone)
    {
        this.suggestObjectTelephone = suggestObjectTelephone;
    }

    public String getSuggestObjectTelephone()
    {
        return suggestObjectTelephone;
    }
    public void setText(String text)
    {
        this.text = text;
    }

    public String getText()
    {
        return text;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("leaveMessageId", getLeaveMessageId())
            .append("name", getName())
            .append("telephone", getTelephone())
            .append("email", getEmail())
            .append("type", getType())
            .append("status", getStatus())
            .append("submitDate", getSubmitDate())
            .append("dealedDate", getDealedDate())
            .append("sourceOfMessage", getSourceOfMessage())
            .append("leaveOfObject", getLeaveOfObject())
            .append("dealPersonAccount", getDealPersonAccount())
            .append("satisfactionOfPerson", getSatisfactionOfPerson())
            .append("suggestObjectName", getSuggestObjectName())
            .append("suggestObjectTelephone", getSuggestObjectTelephone())
            .append("text", getText())
            .toString();
    }
}
